All Questions
80 questions
0votes
0answers
36views
Display a list on the front end from wp_remote_get()
I am getting the data I need from the request but I am not getting to the bottom of how to loop over the data and create a list on the front end. I presumed it would be a foreach loop but I am just ...
1vote
1answer
42views
Wordpress Rest API Post request from AMP
I am trying to figure out how to send a post request to a WP Rest API function on an AMP Page. The endpoint requires 2 fields, post_id & nonce. /wp-json/wordpress-popular-posts/v2/views/[post_id] ...
0votes
2answers
524views
Server 500 error when updating post using block editor
My client's website has a single post that when updated/saved using the block editor displays the following in the browser console: XHR Post Status 500 https://www.wanderwoman.ca/wp-json/wp/v2/posts/...
0votes
1answer
540views
Appointment booking system in WordPress
I have to make an appointment booking system with WordPress, I have a custom post type "appointments" with various various custom fields like : Name, email, date, time, office, service... ...
0votes
1answer
78views
Forminator + Hubspot Workflows
I need to send Forminator form data to a Hubspot workflow for a client. This doesn't seem to be working function send_form_data_to_hubspot($form_data) { $hubspot_api_key = 'MY_API_KEY'; $...
0votes
2answers
907views
Programmatically creating posts based on external JSON feed (asynchronously)
I am currently trying to create a Wordpress plugin which create posts in the Wordpress database based on data from an external JSON API. As an example this NewsAPI feed could be used: https://newsapi....
0votes
1answer
1kviews
get_body_params() is always empty in POST request
I am registering a custom route like this : add_action('rest_api_init', function () { register_rest_route( 'professeurEQ', 'statistics', array( 'methods' => 'POST', 'callback'...
0votes
1answer
559views
How get JSON from external API on every page load if not existing in transient?
Clarification: I'm building a site that will show the profiles of different agents (or specialists) in grid based cards. Each of these profile cards will show the online/offline status of the agent ...
3votes
1answer
227views
Is there a way I can fetch the WordPress Developer Code References with an API?
I would like to fetch the WordPress functions, methods, classes, and hooks from here: https://developer.wordpress.org/ in JSON format. I know that it is a WordPress site, and that I can use WP API to ...
1vote
1answer
1kviews
WP REST API remove the Wordpress shortcodes from the JSON wp/v2/posts content->rendered
I'm trying to get rid of the shortcodes that wordpress gives me when i use the WP REST API. I already managed to remove the HTML tags by editing the class-wp-rest-posts-controller.php by using ...
1vote
1answer
330views
woocommerce registration form with klaviyo(don't work with current user)
I'm trying to integrate klaviyo with woocom form, this is the code I added below. The issue is when I add any hardcoded email in variable $emailUntrim = "[email protected]" instead of $...
0votes
1answer
146views
WordPress Theme/Plugin Information API Response to Text and Button
When requesting to WordPress API for any plugin or theme information for the versions field https://api.wordpress.org/themes/info/1.1/?action=theme_information&request[per_page]=12&request[...
0votes
1answer
1kviews
how to create JSON array [] for REST response?
I am trying to create a REST response for a self-developed API in WordPress. The current code is $response = array(); $response[] = array( 'version' => '1.0', 'user' => ...
1vote
0answers
1kviews
Why does wp_remote_post returns an empty body response on certain endpoints?
Im gonna make this brief; Im using wp_remote_post to do a POST request to an external API. My local development environment looks something like "http://website.test". As of now I am ...
3votes
2answers
885views
Fetch post block/field data as JSON with Wordpress API
Usually find what I need from here without asking but seem to have run into something new, apologies if this has been answered elsewhere. I am building a site in wordpress which isn't my usual CMS but ...